//
//  NSString+Add.h
//  Client
//
//  Created by qq on 2016/12/2.
//  Copyright © 2016年 qq. All rights reserved.
//

#import <Foundation/Foundation.h>

// 服务器日期格式，如："2019-06-04T16:00:00.000+0000"
#define ServerDateFormatter @"yyyy-MM-dd'T'HH:mm:ss.SSSZZZZ"

@interface NSString(Add)

typedef NSString* (^AddFunc)(NSString* str);
typedef NSString* (^AppendFunc)(NSString* str,...);
typedef BOOL (^EqualFunc)(id othObj);
typedef NSString* (^DateToYMD)(NSString* dfmt);
typedef NSString* (^DateToYMDhms)(NSString* dfmt);


@property (strong, nonatomic, readonly) AddFunc add;
@property (strong, nonatomic, readonly) AppendFunc append;
@property (strong, nonatomic, readonly) EqualFunc equal;
@property (strong, nonatomic, readonly) DateToYMD toYMD;
@property (strong, nonatomic, readonly) DateToYMD toYMDhms;

//-(NSString*)add:(NSString*)firstParameter,...;
@end
